#include <iostream>
using namespace std;
template <typename T> T add(T a, T b) {
  T c = a + b;
  return c;
}
int main() {

  int ia = 3;
  int ib = 3;
  cout << add(ia, ib) << endl;
  double da = 3.0;
  double db = 4.0;
  cout << add(da, db) << endl;
}
